import storageManager.Field;

import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: mani
 * Date: 11/23/11
 * Time: 12:40 PM
 * To change this template use File | Settings | File Templates.
 */
public class MyTuple {
    ArrayList<Field> values = new ArrayList<Field>();


    public MyTuple(ArrayList<Field> val) {
        values.addAll(val);
    }

    public String toString() {
        StringBuilder b = new StringBuilder();

        for (Field f : values) {
            b.append((TinySQL.isNull(f) ? "NULL" : f)).append("\t\t");
        }
        return b.toString();
    }

    public void addFields(ArrayList<Field> v) {
        this.values.addAll(v);
    }
    }
